DEMO 1: This interactive demonstration shows an example of how we can use variables in programming.

In previous lessons, you learned that variables can hold values like a sprite or a string.

Lists also have variable names. A list is a group of values separated by commas and surrounded by square brackets.

  • Click Run and follow the instructions on the stage to guide you through the example.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)